//
//  TGAnnotation.m
//  GroupBuy
//
//  Created by wwj on 15/11/19.
//  Copyright © 2015年 wwj. All rights reserved.
//

#import "TGAnnotationModel.h"
#import "TGDealModel.h"
#import "TGDataTool.h"


@implementation TGAnnotationModel
-(void)setDeal:(TGDealModel *)deal{
    _deal = deal;
    for (NSString *c in deal.categories) {
        NSString *icon = [[TGDataTool shareDataTool] iconWithCategoryName:c];
        if (icon) {
            _icon = [icon stringByReplacingOccurrencesOfString:@"ic_filter_category" withString:@"icon_map_cateid"];
            break;
        }
    }
}
@end
